package com.selune.online.ordering.system.project.api.base.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * Entity基类
 *
 * @author xiaoyp
 * @date 2020/3/2
 */

@Data
public class BaseEntity implements Serializable {
	private static final long serialVersionUID = -120080060827562558L;
	
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
}
